home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / sci_calc / ucalc32.zip / PLOTDEMO < prev    next >
Text File  |  1996-11-21  |  1KB  |  40 lines

  1. ; To run this demo, type   PLOTDEMO   at the DOS prompt.
  2. ; Please remember to register.
  3.  
  4. prec 4 ; Many graphs do not require high precision for visual accuracy.
  5. gcolor 8 ; GCOLOR sets the background color.
  6.  
  7. plot
  8. y=sin(x)   ; Try the different menu options,
  9. y=2sin(x)  ; and then press [Esc] to move on to the next screen.
  10. y=3sin(x)
  11. y=4sin(x)
  12.  
  13. grid 7
  14.  
  15. window(-1,10,-1,8)      
  16. plot x^sin(x), 2 to 7
  17.  
  18. window(-10,10,-7.5,7.5) ; Back to the default window setting
  19.  
  20. grid 0   ; grid is turned off
  21. prec 10  ; precision is reset to default
  22.  
  23. plot r=t/pi, 0 to 5pi   ; Polar equation
  24. plot x=cos(t)-cos(2t), y=sin(t)-sin(2t), 0 to 2pi ; Parametric equation
  25.  
  26. plot"graph.dat"        ; Plots the data from another file
  27.  
  28.  
  29. ; The following are 3D graphs
  30.  
  31. plot3d y=(sin(x)+cos(z))*z/3
  32. plot3d y=cos(sqrt(x^2+z^2))*5
  33. plot3d y=(sin(x)+cos(z))*x*z/10
  34. plot3d y=exp(sin(x)*z/4)*cos(z)
  35. plot3d y=exp(sin(x)*z/4)*cos(sqrt(x^2+z^2))
  36. connect off
  37. plot3d y=sin(int(x))*z^2/10*(z>0)+x*sin(z)/4 ; connect off
  38. exit
  39.  
  40.